#@cmsLayout()

#define cmsContent()
<div class="cms-breadcrumb">
	<i class="layui-icon layui-icon-flag"></i>
	<span class="layui-breadcrumb">
	  	<a href="">栏目管理</a>
	  	<a><cite>新增栏目</cite></a>
	</span>
</div>

<div class="body-card layui-card">
	<form id="saveColumn" class="layui-form" action="#(ctx)/cmsColumn/saveColumn" method="post" onsubmit="return false;">
  		#(token)
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 栏目名称</label>
    		<div class="layui-input-inline">
      			<input type="text" name="name" placeholder="请输入栏目名称" class="layui-input">
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label"><span class="color-warn">*</span> 英文标识</label>
    		<div class="layui-input-inline">
      			<input type="text" name="enName" placeholder="请输入栏目英文标识" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">只能是英文字母和数字</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">父栏目</label>
    		<div class="layui-input-inline">
      			<select name="parent">
				  	<option value="0">一级栏目</option>
				  	#for(x : columnList)
				  	<option value="#(x.id)">#(x.name)</option>
				  	#end
				</select>
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">状态</label>
    		<div class="layui-input-inline">
      			<select name="status">
				  	<option value="1">启用</option>
				  	<option value="2">禁用</option>
				</select>
    		</div>
  		</div>
  		<div class="layui-form-item">
    		<label class="layui-form-label">栏目排序</label>
    		<div class="layui-input-inline">
      			<input type="text" name="order" placeholder="请输入栏目排序号" class="layui-input">
    		</div>
    		<div class="layui-form-mid layui-word-aux">同级栏目显示序号，只能是正整数，小的在前</div>
  		</div>
  		<div class="layui-form-item">
    		<div class="layui-input-block">
      			<button class="layui-btn" onclick="ajaxSaveForm('#saveColumn')">立即提交</button>
      			<button type="reset" class="layui-btn layui-btn-primary">重置</button>
    		</div>
  		</div>
  	</form>
</div>

#@jsInit()
#end